import type { AppRouteRecordRaw } from '#/router';
import Layout from '@/layout/index.vue';

const baseRoutes: Array<AppRouteRecordRaw> = [
  {
    path: '/',
    name: 'Index',
    component: Layout,
    redirect: '/home',
    children: [
      {
        path: '/home',
        component: () => import('@/views/home/index.vue'),
        meta: { title: '' },
      },
      {
        path: '/login',
        component: () => import('@/views/Login/index.vue'),
        meta: { title: '' },
      },
      {
        path: '/regist',
        component: () => import('@/views/Regist/index.vue'),
        meta: { title: '' },
      },
      {
        path: '/emailVerify',
        component: () => import('@/views/EmailVerify/index.vue'),
        meta: { title: '' },
      },
      {
        path: '/forgotPsd',
        component: () => import('@/views/ForgotPassword/index.vue'),
        meta: { title: '' },
      },
      {
        path: '/emailSent',
        component: () => import('@/views/EmailSent/index.vue'),
        meta: { title: '' },
      },
      {
        path: '/resetPwd',
        component: () => import('@/views/ResetPassword/index.vue'),
        meta: { title: '' },
      },
      {
        path: '/pwdChanged',
        component: () => import('@/views/PasswordChanged/index.vue'),
        meta: { title: '' },
      },
      {
        path: '/newPwd',
        component: () => import('@/views/newPassword/index.vue'),
        meta: { title: '' },
      },
      {
        path: '/changePwd',
        component: () => import('@/views/ChangePwd/index.vue'),
        meta: { title: '' },
      }
    ],
  },
];

export default baseRoutes;
